1 /* JJT: 0.2.2 */
2
3 package mobisnap.mobile_trx;
4
5 /***
6 * Creates table
7 *
8 */
9 public class ASTCreateTable extends mobisnap.mobile_trx.SimpleNode {
10 ASTTableReference tablename;
11 public MSQLTable table;
12
13 public ASTCreateTable(int id) {
14 super(id);
15 }
16
17 public ASTCreateTable( MobisnapSQL p, int i) {
18 super( p, i);
19 id = i;
20 }
21
22 /*** Accept the visitor. **/
23 public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
24 return visitor.visit(this, data);
25 }
26
27 public void process( int msql_type) throws Exception {
28 StringBuffer buffer = new StringBuffer();
29 sourceCode( msql_type, buffer);
30 MobisnapSQL.transaction.executeUpdate( buffer.toString().trim());
31 }
32
33 public String tableName( int msql_type) throws Exception {
34 StringBuffer buffer = new StringBuffer();
35 tablename.sourceCode( msql_type, buffer);
36 return buffer.toString().trim();
37 }
38
39 }
This page was automatically generated by Maven